package com.maiyawx.mall.entity;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 登录请求体
 */
@SuppressWarnings("serial")
public class RequestLogin implements Serializable {

    private String code;
    private String encryptedData;
    private String iv;
    @NotNull(message = "appid不能为空！")
    private String appid;

    @Override
    public String toString() {
        return "RequestLogin{" +
                "code='" + code + '\'' +
                ", encryptedData='" + encryptedData + '\'' +
                ", iv='" + iv + '\'' +
                ", appid='" + appid + '\'' +
                '}';
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getEncryptedData() {
        return encryptedData;
    }

    public void setEncryptedData(String encryptedData) {
        this.encryptedData = encryptedData;
    }

    public String getIv() {
        return iv;
    }

    public void setIv(String iv) {
        this.iv = iv;
    }

    public String getAppid() {
        return appid;
    }

    public void setAppid(String appid) {
        this.appid = appid;
    }
}
